package com.cn.ant.modules.school.entity;

import com.cn.ant.common.persistence.MyDataEntity;
import com.cn.ant.common.utils.excel.annotation.ExcelField;
import org.hibernate.validator.constraints.Length;

/**
 * 专业信息Entity
 * @author AntDream
 * @version 2015-08-19
 */
public class MajorInfo extends MyDataEntity<MajorInfo> {
	
	private static final long serialVersionUID = 1L;
	private String majorName;		// 专业名称
	private String majorLevel;		// 专业层次
	private String majorType;		// 专业类别
	private String majorParentCode;		// 专业大类代码
	private String majorCode;		// 专业代码
	private String studyLife;		// 修学年限
	private String awardDegree;		// 授予学位
	private String majorDesc;		// 专业解读
	private String openSchool;		// 开设院校
	private String jyqjyfx;		// 就业前景与方向
	private String majorSort;		// 专业排名
	private String majorCourse;		// 主修课程
	private String majorCloseCodes;		// 相近专业编码集合
	private String majorCloseNames;		// 相近专业名称

	public MajorInfo() {
		super();
	}

	public MajorInfo(String id){
		super(id);
	}

	@Length(min=1, max=64, message="专业名称长度必须介于 1 和 64 之间")
	@ExcelField(title = "专业名称", align = 0, sort = 10, type = 0)
	public String getMajorName() {
		return majorName;
	}

	public void setMajorName(String majorName) {
		this.majorName = majorName;
	}
	
	@Length(min=1, max=32, message="专业层次长度必须介于 1 和 32 之间")
	@ExcelField(title = "专业层次", align = 0, sort = 30, type = 0,dictType = "zy_cc")
	public String getMajorLevel() {
		return majorLevel;
	}

	public void setMajorLevel(String majorLevel) {
		this.majorLevel = majorLevel;
	}
	
	@Length(min=1, max=32, message="专业类别长度必须介于 1 和 32 之间")
	@ExcelField(title = "专业类别", align = 0, sort = 50, type = 0,dictType = "major_type")
	public String getMajorType() {
		return majorType;
	}

	public void setMajorType(String majorType) {
		this.majorType = majorType;
	}
	
	@Length(min=1, max=32, message="专业大类代码长度必须介于 1 和 32 之间")
	@ExcelField(title = "专业大类代码", align = 0, sort = 50, type = 0,dictType = "major_parent_code")
	public String getMajorParentCode() {
		return majorParentCode;
	}

	public void setMajorParentCode(String majorParentCode) {
		this.majorParentCode = majorParentCode;
	}

	@Length(min=1, max=20, message="专业代码长度必须介于 1 和 20 之间")
	@ExcelField(title = "专业代码", align = 0, sort = 20, type = 0)
	public String getMajorCode() {
		return majorCode;
	}

	public void setMajorCode(String majorCode) {
		this.majorCode = majorCode;
	}
	
	@Length(min=1, max=11, message="修学年限长度必须介于 1 和 11 之间")
	@ExcelField(title = "修学年限", align = 0, sort = 60, type = 0,dictType = "study_life")
	public String getStudyLife() {
		return studyLife;
	}

	public void setStudyLife(String studyLife) {
		this.studyLife = studyLife;
	}
	
	@Length(min=1, max=32, message="授予学位长度必须介于 1 和 32 之间")
	@ExcelField(title = "授予学位", align = 0, sort = 70, type = 0,dictType = "award_degree")
	public String getAwardDegree() {
		return awardDegree;
	}

	public void setAwardDegree(String awardDegree) {
		this.awardDegree = awardDegree;
	}
	
	@Length(min=0, max=256, message="专业解读长度必须介于 0 和 256 之间")
	public String getMajorDesc() {
		return majorDesc;
	}

	public void setMajorDesc(String majorDesc) {
		this.majorDesc = majorDesc;
	}
	
	@Length(min=0, max=512, message="开设院校长度必须介于 0 和 512 之间")
	public String getOpenSchool() {
		return openSchool;
	}

	public void setOpenSchool(String openSchool) {
		this.openSchool = openSchool;
	}
	
	@Length(min=0, max=256, message="就业前景与方向长度必须介于 0 和 256 之间")
	public String getJyqjyfx() {
		return jyqjyfx;
	}

	public void setJyqjyfx(String jyqjyfx) {
		this.jyqjyfx = jyqjyfx;
	}
	
	@Length(min=0, max=11, message="专业排名长度必须介于 0 和 11 之间")
	@ExcelField(title = "专业排名", align = 0, sort = 80, type = 0)
	public String getMajorSort() {
		return majorSort;
	}

	public void setMajorSort(String majorSort) {
		this.majorSort = majorSort;
	}
	
	@Length(min=0, max=128, message="主修课程长度必须介于 0 和 128 之间")
	@ExcelField(title = "主修课程", align = 0, sort = 90, type = 0)
	public String getMajorCourse() {
		return majorCourse;
	}

	public void setMajorCourse(String majorCourse) {
		this.majorCourse = majorCourse;
	}
	
	@Length(min=0, max=512, message="相近专业编码集合长度必须介于 0 和 512 之间")
	public String getMajorCloseCodes() {
		return majorCloseCodes;
	}

	public void setMajorCloseCodes(String majorCloseCodes) {
		this.majorCloseCodes = majorCloseCodes;
	}
	
	@Length(min=0, max=512, message="相近专业名称长度必须介于 0 和 512 之间")
	public String getMajorCloseNames() {
		return majorCloseNames;
	}

	public void setMajorCloseNames(String majorCloseNames) {
		this.majorCloseNames = majorCloseNames;
	}

}